<!-- 公共文件 start -->
@extends('admin.public.base')
<!-- 公共文件 end -->

@section('content')
    <div class="layui-fluid">
        <div class="layui-row">
            <form class="layui-form">
                <div class="layui-form-item" style="text-align:center;font-size:18px;">
                    <b>入库订单号：{{$data['order_sn']}}</b>
                    <div class="icon iconfont" style="float:right;">&#xe6c9;</div>
                </div>
                <hr>
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>商品名</th>
                            <th>商品分类</th>
                            <th>商品编号</th>
                            <th>单件价格</th>
                            <th>入库数量</th>
                            <th>实付价格</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach( $data['goods_list'] as $kk => $item)
                            <tr>
                                <td>{{ $item['goods_name'] }}</td>
                                <td>{{ $item['cate_name'] }}</td>
                                <td>{{ $item['goods_sn'] }}</td>
                                <td>{{ $item['goods_price'] }}</td>
                                <td>{{ $item['goods_number'] }}</td>
                                <td>{{ $item['goods_amount'] }}</td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><b>总计：</b></label>
                    <div class="layui-input-block" style="line-height:36px">
                        数量：{{$data['total_number']}}个 <br>
                        金额：{{$data['goods_pay_amount']}}元 <br>
                        总金额：{{$data['order_amount']}}元 <br>
                    </div>
                </div>
                <hr>
                <div class="layui-form-item">
                    <div class="layui-block">
                        <label class="layui-form-label">备注：</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="remark" >{{ $data['remark'] }}</textarea>
                        </div>
                    </div>
                </div>
                <hr>
                <div class="layui-form-item">
                    <label class="layui-form-label"><b>订单状态：</b></label>
                    <div class="layui-input-block" style="line-height:36px">
                        出库状态：<b style="color:{{$data['order_status_color']}}">{{$data['status_name']}}</b><br>
                        操作人：{{$data['update_user']}}
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script type="text/javascript" src="/static/admin/js/xcity.js"></script>
    <script>
        layui.use(['form', 'layer', 'jquery', 'code'], function () {
            $ = layui.jquery;
            var form = layui.form,
                layer = layui.layer;
        });
    </script>
@endsection
